/* pts01Login.h
 *
 * --
 * Copyright (c) 2012, Christophe Huriaux
 * Distributed under the terms of the MIT license.
 * http://www.opensource.org/licenses/mit-license.php
 * --
 */

#ifndef MCPACKET_pts01_H
#define MCPACKET_pts01_H

#include <string>
#include <iostream>
#include <stdint.h>
#include <vector>
#include <packet/McPacket.h>

class pts01Login : public McPacketToServer
{
    int32_t version;
    std::string username;

public:
    pts01Login(int32_t version, std::string username);
    pts01Login();

    void forge(std::ostream& out);
    unsigned int length();

    int32_t getVersion();
    std::string getUsername();

    void setVersion(int32_t version);
    void setUsername(std::string username);
};

#endif // MCPACKET_pts01_H
